home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
6
/
dbf_tc.zip
/
D_BLANK.C
< prev
next >
Wrap
Text File
|
1987-06-06
|
700b
|
28 lines
/*
** file: d_blank.c
** purpose: routine to fill a record in memory with blanks.
** usage: d = (struct DBF *)malloc(sizeof(struct DBF));
** strcpy(d->filename,"filename.dbf");
** d_open(d);
** d_blank(d);
** d_addrec(d);
** d_close(d);
** free(d);
** notes: the above code fragment append a blank record to the end of the
** dbiii file.
** compile with "tcc -c d_blank". include this file in dbf.lib
** see dbf.h for structure of DBF
** author: Mark Sadler
** revised: 6/6/87
*/
#include <stdio.h>
#include <mem.h>
#include "dbf.h"
int d_blank(struct DBF *d)
{
memset(d->record_ptr,'\x20',d->record_length);
return(0);
}